from flask import Flask
import  codecs
from main.markTohtml import  MarkDown
app = Flask(__name__)

@app.route('/',methods=['get'])
def hello_world():
    inputfile=codecs.open('./jk/a.md',mode="r",encoding='utf-8')
    text=inputfile.read()
    output=MarkDown(text).convert()
    return output

# @app.route('/')
if __name__ == '__main__':
    app.run()
